<?php

declare(strict_types=1);

namespace Dreamcat\ApiDoc\AddSimpleVariableHelper;

use Dreamcat\ApiDoc\Popo\ApiDefinition;
use Dreamcat\ApiDoc\Popo\BodyDefinition;

/**
 * 添加header
 * @author vijay
 */
class AddHeader extends AbstractAddSimpleVariableHelper
{
    /**
     * @inheritDoc
     */
    protected function getVariableName(): string
    {
        return "Header";
    }

    /**
     * @inheritDoc
     */
    protected function addDefinition(ApiDefinition $apiDefinition, BodyDefinition $definition): ApiDefinition
    {
        return $apiDefinition->addHeaderDefinition($definition);
    }
}

# end of file
